﻿using System.ComponentModel.DataAnnotations;

namespace LanqiQAwebapi.Dto
{
    public class LoginByPhone
    {

        [Required]
        [RegularExpression(@"^1[3-9]\d{9}$|^1[0-2]\d{9}$", ErrorMessage = "电话号码格式不正确")]
        public string Phone { get; set; }
        [Required]
        [RegularExpression(@"^\d{6}$", ErrorMessage = "PhoneCode必须是6位数字")]
        public string PhoneCode { get; set; }
       // public string Token { get; set; }
    }

    public class LoginByPhones
    {

        public List<LoginByPhone> MyProperty { get; set; }
    }
}
